public class Driver {
    String name;
    String sex;

    public Driver(String name, String sex) {
        this.name = name;
        this.sex = sex;
        System.out.println("这个性别是" + sex + "叫" + name + "的人");
    }

    public void driver(Tank c) {

        System.out.println("他可以驾驶" + c.horsepower + "的坦克，这辆坦克装配" + c.bombNumber + "的导弹"+c.start()+c.climbing());

    }
    public void driver(Car3 b){
        System.out.println("他可以驾驶"+b.seat+"座，排量为"+b.displacement+"的轿车"+b.start()+b.brake());
    }
    public void driver(Steamer d){
        System.out.println("他可以驾驶"+"载重为"+d.load+"kg,排水量为"+d.displacement+"L,航速为"+d.speed+"km/h的轮船"+d.sail()+d.whistle()+d.stop());
    }
    public void driver(AirPlane f ){
        System.out.println("他可以驾驶飞行高度为"+f.flyhight+"m,座位数为"+f.seatnumber+"的飞机"+f.takeoff()+f.landing());
    }
    public void driver(Tractors e){
        System.out.println("他可以驾驶载重为"+e.load+"kg体积为"+e.volume+"m3的拖拉机"+e.start()+e.speed());
    }


}
